Ext.define('Admin.model.salary.SalaryModel', {
    extend: 'Admin.model.Base',
    fields: [
   	{name: 'id', type: 'int'},
        {name: 'employee', type: 'auto'},
        {name: 'employee.id', mapping: 'employee.id'},
        {name: 'employee.empName', mapping:'employee.empName'},
        {name: 'attendanceEvent', type: 'auto'},
		{name: 'time', type: 'date'},
		{name: 'totalAbsence', type: 'int'},
		{name: 'totalOvertime', type: 'int'},
		{name: 'totalLeave', type: 'int'},
		{name: 'totalVacation', type: 'int'},
		{name: 'totalscore', type: 'int'},
        {name: 'salary', type: 'int'},
	    {name: 'employee.raps',mapping: 'employee.raps'},
	    {name: 'employee.raps.score', mapping: 'employee.raps.score'},
	    {name: 'rapscore',convert: function (value, record) {
	    	                 var value =new Array();
							var raps=record.get('employee.raps');
					        return value;
					     }
        }
			]
   
});